home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / doom / quake1.zip / SPREDGUN.ZIP / SPREDGUN.TXT < prev    next >
Text File  |  1996-08-12  |  4KB  |  123 lines

  1. THE 'CONTRA' SPREAD GUN! v1.0             8/12/96
  2.  by TigerShark (aka SuperHero#1) (tigershark@shelby.net)
  3.  
  4.  
  5. ===  DESCRIPTION  ==========
  6.  
  7.    In Rememberance of that Wonderful Nintendo/Arcade Game, 'Contra',
  8. I've developed a QuakeC Add-in for the All-Powerful Spread Gun! (Sorry, no
  9. Metal Eagles to shoot down here)
  10.  
  11.  About the Gun:
  12.    The Gun itself is toggled with the Rocket Launcher with an Impulse 190
  13. command. Each Shot Takes 5 Cells, and won't fire if you don't have any.
  14.    The Homing Spread Gun is just that. It is like the Spread Gun, but
  15. Homes in on it's targets and uses 25 cells.
  16.  
  17.    Extra - The DOG ROCKET. I added this in just for fun last night. It's
  18. kinda crazy, only for fun (hopefully <g>). It's a flying, homing, dog...
  19. A good laugh for all. Use it just like the Spread Gun switching. (imp 191)
  20.  
  21.  
  22. ===  FILE STRUCTURE  =======
  23.  
  24.   The files included are in QC (QuakeC) Form and need to be compiled to
  25. create the PROGS.DAT (Duh) If you are lost from here on, go to #quakec
  26. and annoy the guys there <g>.
  27.   The main file is SPREDGUN.QC, but changes need to be made to WEAPONS.QC
  28. and DEFS.QC (Explained Below) Plus, the Media Files (the WAV + MDL) need
  29. to be moved to the appropriate directory.
  30.   I've explained the installation pretty comprehensively and extensively
  31. (or at least to me) and I'm sorry if it takes you advanced quakers more
  32. then 2 minutes to put it in.
  33.  
  34.  
  35.   Adjustments Needed to be Made:
  36.  
  37.   PROGS.SRC    - Add in SPREDGUN.QC in the line before WEAPONS.QC so that it
  38.                  will compile into the PROGS.DAT.
  39.  
  40.   SPREDGUN.QC  - Move to the Compile Directory.
  41.  
  42.   WEAPONS.QC   - Need to Add in a Few Lines. See Below.
  43.  
  44.   DEFS.QC      - Need to Add in a Few Lines. See Below.
  45.  
  46.   SPREDGUN.WAV - Move to SOUND\WEAPONS\ under the game directory.
  47.  
  48.   SPREDGUN.MDL - Move to PROGS\ under the game directory
  49.  
  50.     (The Game Directory is the one specified on the command line
  51.     QUAKE -game GAMEDIRECTORY, and holds the PROGS.DAT in the Root
  52.     of that Directory)
  53.  
  54.  
  55. ===  WEAPONS.QC  ===========
  56.  
  57. 1.  Two Media files must be PreCached in order for the Spread Gun to work
  58. to it's Fullest Potential. The W_Precache command is located at the
  59. begining of WEAPONS.QC, and just stick these two lines in the top of the
  60. function.
  61.  
  62.         precache_sound ("weapons/spredgun.wav");  // spread hiss
  63.         precache_model ("progs/spredgun.mdl");  //Ball Model for Spread
  64.         precache_sound ("dog/dattack1.wav");  // Dog (In case of DM)
  65.         precache_model ("progs/dog.mdl");     //Dog (In case of DM)
  66.  
  67. 2.  The 'Switch' Listener Lines must be added in at the rocketfire area.
  68. It is located near line 940; (Do a search for player_rocket1, it's like the
  69. 3rd instance of it)
  70.  
  71.         }
  72.     else if (self.weapon == IT_ROCKET_LAUNCHER)
  73.     {
  74.                 player_rocket1();                          
  75.                 if (self.spredgun == 9) {W_FireDog();}       //
  76.                 if (self.spredgun == 2) {W_FireHomeSpread();}//  MAKE IT 
  77.                 if (self.spredgun == 1) {W_FireSpread();}  //  LOOK JUST
  78.                 if (self.spredgun == 0) {W_FireRocket();}  //  LIKE THIS
  79.                 self.attack_finished = time + 0.8;        
  80.     }
  81.     else if (self.weapon == IT_LIGHTNING)
  82.     {
  83.  
  84.  
  85. 3.  Then, Lastly, All you Need is an impulse command to Switch from Rocket-
  86. Launcher mode to Spread mode. Put this in the Impulse Command section.
  87. (Near line 1170 or so) Set the Impulse Number to any impulse you want, It
  88. dosen't matter.
  89.  
  90.       if (self.impulse == 190)
  91.                 SwitchSpread();
  92.       if (self.impulse == 191)
  93.                 SwitchDog();
  94.  
  95.  
  96. ===  DEFS.QC  ==============
  97.  
  98.    A Global variable must be added to the structure 'self'. It Should be
  99. placed in DEFS.QC at about line 485 (From version packaged with QCC)
  100.  
  101.     .float          spredgun;
  102.  
  103. just after it should be the comment:
  104.  
  105. //
  106. // object stuff
  107. //
  108.  
  109. The Ideal way to do it would just do a search for 'object stuff' and then
  110. move up a couple lines. (There's only one occurrance of 'object stuff' in
  111. DEFS.QC)
  112.  
  113.  
  114. ===  CONCLUSION  ===========
  115.  
  116.   Well, You got it. I've tried to find all the bugs, but If all the people
  117. that actually play this mod could email me with suggestions, bug finds, etc.
  118. I'll be able to Whip out some more Cool Stuff.
  119.  
  120.                                                 tigershark@shelby.net
  121.  
  122.  
  123.